﻿<%@ Page Language="C#" MasterPageFile="~/MasterALSafa.Master"AutoEventWireup="true" CodeBehind="SRV_Book_StockTacking.aspx.cs" Inherits="School.Pages.BOOKS.SRV_Book_StockTacking" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<%@ Register src="../UserControls/CampusPackage.ascx" tagname="CampusPackage" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <script src="../js/jquery-1.5.1.min.js" type="text/javascript"></script>
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
  
    <div>
        <table align="right" dir="rtl">
            <tr>
                <td colspan="4">
                    <uc1:CampusPackage ID="CampusPackage1" runat="server" />
                </td>
              
            </tr>
            <tr>
                <td style="padding-right: 50px;" colspan="1">
                    <div style="width:100px;float:right;padding-top:5px;">
                    </div>
                     <div style="width:100px;float:right;padding-top:5px;">
                        <asp:Button ID="btnPrint" runat="server" Text="بحث" ValidationGroup="bu" Width="81px"
                             CssClass="graybutton" onclick="btnPrint_Click" />
                    </div>
                </td>
             </tr>
            <tr>
                <td colspan="3" style="color: Green">
                    <asp:Literal ID="lblResult" runat="server" Visible="False"></asp:Literal>
                    <asp:ObjectDataSource ID="odsStock" runat="server" 
                        onselecting="odsStock_Selecting" SelectMethod="BookStockReport" 
                        TypeName="School.Service.BOOKS.SRV_BOOKS">
                        <SelectParameters>
                            <asp:Parameter Name="campusid" Type="Int32" />
                            <asp:Parameter Name="cerId" Type="Int32" />
                            <asp:Parameter Name="StageId" Type="Int32" />
                            <asp:Parameter Name="GradeId" Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </td>
            </tr>
            <tr>
               <td colspan="3">
                   <input type="hidden" clientidmode="Static"  id="hshow" runat="server" />
                    <div id="rptDiv">
                        <rsweb:ReportViewer ID="rvStock" runat="server" Font-Names="Verdana" Font-Size="8pt"
                            InteractiveDeviceInfos="(Collection)" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt"
                            Width="" SizeToReportContent="True" PageCountMode="Actual">
                            <LocalReport ReportPath="BOOKS\Reports\BookStockReport.rdlc">
                                <DataSources>
                                    <rsweb:ReportDataSource DataSourceId="odsStock" Name="DSBookStock" />
                                </DataSources>
                            </LocalReport>
                        </rsweb:ReportViewer>
                    </div>
                     <script language="javascript" type="text/javascript">
                         if ($('#hshow').val() == '1') {
                             $('#rptDiv').show();
                         }
                         else {
                             $('#rptDiv').hide();
                         }
                    </script>
                </td>
            </tr>
        </table>
    </div>
    
 </asp:Content>
